<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"
  xmlns:c="livcos.org/ns/cosmos"
  xmlns:f="livcos.org/ns/xslt/function"
  xmlns="http://www.w3.org/1999/xhtml"
  exclude-result-prefixes="c f">
  
  <xsl:import href="../meta.xsl"/>
  
  <xsl:variable name="view" select="'data'"/>
  <xsl:param name="scope" select="'content'"/>
  
	<xsl:template name="page_css">
		<link href="{f:caller-uri(resolve-uri('css/styles.css'))}" rel="stylesheet" type="text/css"/>
	</xsl:template>
	
	<xsl:template name="page_scripts">
  	<script type="text/javascript" src="{f:caller-uri(resolve-uri('../script/scripts.js'))}"><!-- -->
  		<xsl:comment> </xsl:comment>
  	</script>
  </xsl:template>
  
	<xsl:template name="page_content">
		<xsl:variable name="objId" select="f:object-id(.)"/>
		<div id="{$objId}" class="contentPanel" style="background-color: white;">
			<div class="content">
				<p style="margin-left: 0px;">
					<span style="font-variant: small-caps;">Raw <xsl:value-of select="$scope"/> Data for </span>
					<xsl:value-of select="$objId"/>
					<xsl:for-each select="('content', 'meta', 'history')[. != $scope]">
						<xsl:text> </xsl:text>
						<a href="{f:caller-uri('/livcos.org/web/data', $objId)}.html?scope={.}" title="Click to view {.} data."
							class="switchScope">
							<xsl:text>[</xsl:text>
							<xsl:value-of select="."/>
							<xsl:text>]</xsl:text>
						</a>
					</xsl:for-each>
				</p>
				<xsl:apply-imports/>
			</div>
		</div>
	</xsl:template>
	
</xsl:stylesheet>